Re: CSS stops working, and class problem.

by "Eric A. Meyer" <eam3(at)po.cwru.edu>

 Date:  Fri, 29 Oct 1999 14:07:00 -0400
 To:  hwg-style(at)hwg.org
 References:  thedigitalpage
  todo: View Thread, Original
>>I've just been checking out the <noscript> </noscript> tags for a page which
>>needs JavaScript, and I found that if I turned JS off in Netscape 4.04, the
>><noscript> stuff worked OK, BUT all the CSS on the page stopped working.
>>
>>Is this a known bug?

   Yes, it is.  Netscape depends on Javascript to make CSS work.  It's a
long story, but the short short version is that Netscape wanted to make
styles and behaviors intertwined, but the W3C decided on a different path.

>Might this line- font: normal 8pt/12pt;   be causing the problem? Have you
>tried it with just one font size defined?

   Yes, but not for the reasons you think.  A 'font' declaration must have
a font-family associated with it; IE may let this pass, but Netscape won't,
and is right not to do so.  The 8pt/12pt is valid (if inadvisable) in that
it defines 8pt text with a 12pt line-height.
   If you must make the text too small to be read on Macintosh monitors,
you'll have to at least add a font-family, like this:

   font: normal 8pt/12pt sans-serif;

...or declarations to that effect.

--
Eric A. Meyer  -  eam3(at)po.cwru.edu  -  http://www.cwru.edu/home/eam3.html
 Editor, Style Sheets Reference Guide  http://style.webreview.com/
 Coordinator, CSS1 Test Suite          http://www.w3.org/Style/CSS/Test/
 Member, WSP CSS Technical Committee   http://www.webstandards.org/

HWG hwg-style mailing list archives, maintained by Webmasters @ IWA